<?php
use Buan\UrlCommand;
?>

<a class="task task-create" href="<?php $this->html->eUrl(UrlCommand::createUrl('scribble', 'auth', 'user', 'create')); ?>">Create A User</a>
<a class="task task-create" href="<?php $this->html->eUrl(UrlCommand::createUrl('scribble', 'auth', 'role', 'create')); ?>">Create A Role</a>

<div class="hr"><hr /></div>

<h3>Filter</h3>
<form method="get">
	<dl>
		<dt>Role:</dt>
		<dd><input id="filter-role" type="text" name="filter[role]" value="<?php $this->html->e($filter['role']); ?>" /></dd>
	</dl>

	<button class="apply" type="submit" value="Apply">Apply</button>
	<button class="reset" type="reset" value="Clear">Clear</button>
</form>

<script type="text/javascript">
var roles = <?php echo json_encode($rolesForFilter, TRUE); ?>;
</script>